package gamecomponents.menu;

import gamecomponents.graphic.Blitable;

import java.awt.Point;

import com.threed.jpct.Texture;

/**
 * A Menu Image
 * @author Team Deer
 * 
 */
public class MenuImage implements Blitable {
	
	private final Point position;
	private final Texture texture;
	private final int width;
	private final int height;
	private final int alpha;

	// Constructor
	
	/**
	 * Constructs a new Menu Image
	 * @param x
	 *            - The x-coordinate of the image
	 * @param y
	 *            - The y-coordinate of the image
	 * @param texture
	 *            - The texture of the image
	 * @param width
	 *            - The width of the image
	 * @param height
	 *            - the height of the image
	 * @param alpha
	 *            - the alpha value
	 */
	public MenuImage(final Texture texture, final int x, final int y,
			final int width, final int height, final int alpha) {
		this.texture = texture;
		this.position = new Point(x, y);
		this.width = width;
		this.height = height;
		this.alpha = alpha;
	}

	// Methods
	
	@Override
	public Texture getTexture() {
		return this.texture;
	}
	
	@Override
	public Point getPosition() {
		return this.position;
	}

	@Override
	public int getSrcWidth() {
		return this.texture.getWidth();
	}

	@Override
	public int getSrcHeight() {
		return this.texture.getHeight();
	}

	@Override
	public int getWidth() {
		return this.width;
	}

	@Override
	public int getHeight() {
		return this.height;
	}

	@Override
	public int getAlpha() {
		return this.alpha;
	}

}